package com.example.demo.client.vm.cssmqry.resource;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * @Author linxiao
 * @Date 2020/06/24  17:14
 */
@ApiModel("资源类型")
public class ResourceVm implements Serializable {
    private static final long serialVersionUID = -7148969260305399398L;
    @ApiModelProperty("资源ID")
    private Long csSmResourceId;
    @ApiModelProperty("被关联资源名称")
    private String resourceName;
    @ApiModelProperty("资源类型id")
    private Long resourceType;
    @ApiModelProperty("被关联资源主键")
    private String resourceKey;
    @ApiModelProperty("关联资源对象类型")
    private String objectType;
    @ApiModelProperty("关联资源对象（角色ID）")
    private Long objectId;

    @Override
    public String toString() {
        return "ResourceVm{" +
            "csSmResourceId=" + csSmResourceId +
            ", resourceName='" + resourceName + '\'' +
            ", resourceType=" + resourceType +
            ", resourceKey='" + resourceKey + '\'' +
            ", objectType='" + objectType + '\'' +
            ", objectId=" + objectId +
            '}';
    }

    public String getResourceKey() {
        return resourceKey;
    }

    public void setResourceKey(String resourceKey) {
        this.resourceKey = resourceKey;
    }

    public Long getCsSmResourceId() {
        return csSmResourceId;
    }

    public void setCsSmResourceId(Long csSmResourceId) {
        this.csSmResourceId = csSmResourceId;
    }

    public String getResourceName() {
        return resourceName;
    }

    public void setResourceName(String resourceName) {
        this.resourceName = resourceName;
    }

    public Long getResourceType() {
        return resourceType;
    }

    public void setResourceType(Long resourceType) {
        this.resourceType = resourceType;
    }


    public String getObjectType() {
        return objectType;
    }

    public void setObjectType(String objectType) {
        this.objectType = objectType;
    }

    public Long getObjectId() {
        return objectId;
    }

    public void setObjectId(Long objectId) {
        this.objectId = objectId;
    }
}
